<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CKEDITOR</title>
<script type="text/javascript"
	src="/hhcommon/opensource/ckeditor/ckeditor.js"></script>
<script type="text/javascript"
	src="/hhcommon/js/ckeditor/myTextField.js"></script>
<script type="text/javascript">
	window.onload = function() {
		var editor = CKEDITOR
				.replace(
						'editor',
						{
							extraPlugins : 'mytextfield',
							toolbar : [
									{
										name : 'document',
										items : [ 'Source', '-', 'Save',
												'NewPage', 'DocProps',
												'Preview', 'Print', '-',
												'Templates' ]
									},
									{
										name : 'clipboard',
										items : [ 'Cut', 'Copy', 'Paste',
												'PasteText', 'PasteFromWord',
												'-', 'Undo', 'Redo' ]
									},
									{
										name : 'editing',
										items : [ 'Find', 'Replace', '-',
												'SelectAll', '-',
												'SpellChecker', 'Scayt' ]
									},
									{
										name : 'basicstyles',
										items : [ 'Bold', 'Italic',
												'Underline', 'Strike',
												'Subscript', 'Superscript',
												'-', 'RemoveFormat' ]
									},
									{
										name : 'paragraph',
										items : [ 'NumberedList',
												'BulletedList', '-', 'Outdent',
												'Indent', '-', 'Blockquote',
												'CreateDiv', '-',
												'JustifyLeft', 'JustifyCenter',
												'JustifyRight', 'JustifyBlock',
												'-', 'BidiLtr', 'BidiRtl' ]
									},
									{
										name : 'links',
										items : [ 'Link', 'Unlink', 'Anchor' ]
									},
									{
										name : 'insert',
										items : [ 'Image', 'Flash', 'Table',
												'HorizontalRule', 'Smiley',
												'SpecialChar', 'PageBreak',
												'Iframe' ]
									},
									{
										name : 'styles',
										items : [ 'Styles', 'Format', 'Font',
												'FontSize' ]
									},
									{
										name : 'colors',
										items : [ 'TextColor', 'BGColor' ]
									},
									{
										name : 'tools',
										items : [ 'Maximize'/* , 'ShowBlocks', '-', 'About' */]
									},
									'/',
									{
										name : 'forms',
										items : [ /* 'Form', */
										'Checkbox', 'Radio', 'TextField',
												'Textarea', 'Select'/*, 'Button',*/
												, 'MyTextfield' ]
									} ],
							height : 1000,
							fullPage :true,
							skin :'office2003',
							contentsLangDirection :'rtl'
						});

	};
</script>
</head>
<body>
	<textarea rows="100" cols="50" name="editor"></textarea>
</body>
</html>